<?php
namespace app\common\exception;

class DefinedException extends \Exception
{
    public function __construct($data,\Exception $previous = null){
        parent::__construct($data['msg'], $data['code'], $previous);
    }
}
